package com.dgut.cbd.finalexp.dao;

import com.dgut.cbd.finalexp.entity.MyAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Program: finalexp
 * @Description:
 * @Author: cbd
 * @Create: 2021-06-21
 * @Version: 1.0.0
 **/
@Mapper
@Repository
public interface AdminDao {

    @Select("select * from admin where name = #{id} limit 1")
    public MyAdmin loadAdminFromId(String id);

}
